﻿@model ProgrammingSchool.Models.Account.RegistrationModel
@{
    ViewBag.Title = "Programming School | Registration";
}
<div class="back_popup" onclick="hiddenPopUp();">
</div>
<div class="popup registration">
    @using (Ajax.BeginForm("Registration", "Account", null, new AjaxOptions() { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "popup" }, new { id = "fmReg" }))
    {
        <div id="student_login" style="width: 285px;">
            <div id="student_login_name">
                <span>Registration</span>
            </div>
            <div class="username_password">
                @Html.TextBoxFor(m => m.Email)
                <span>Email:</span>
            </div>
            <div class="username_password">
                @Html.PasswordFor(m => m.Password)
                <span>Password:</span>
            </div>
            <div class="username_password">
                @Html.PasswordFor(m => m.ConfirmPassword)
                <span>Confirm:</span>
            </div>
            <div class="errorMessage">
                <span>@Html.ValidationSummary()</span>
            </div>
            <div id="student_login_button">
                <a href="#" onclick="$('#fmReg').submit(); return false;"><span>Register</span></a>
            </div>
        </div>
    }
</div>
